import { Injectable } from '@angular/core';

@Injectable()
export class DeptlistService {
deptList: DeptHosp[] = [new DeptHosp(0, [new Dept('骨科', 0), new Dept('骨科', 1), new Dept('骨科', 2)]),
  new DeptHosp(1, [new Dept('妇科', 0), new Dept('妇科', 1), new Dept('妇科', 2)]),
  new DeptHosp(2, [new Dept('内科', 0), new Dept('内科', 1), new Dept('内科', 2)])
];
  constructor() {

  }

}
class DeptHosp {
  constructor(public hospId: number,
              public deptList: Dept[]) {}
}

class Dept {
  constructor(
              public deptName: string,
              public deptCode: number,
              ) {}
}
